import fetch from '@/utils/request';

const API_DISTRIBUTIONGOODS_URL = '/api/user/sale/product';
/**
 * 分销商品API对象
 * @module DistributionGoodsApi
 */
const DistributionGoodsApi = {
	/**
	 * @function query
	 * @description 查询分销商品
	 * @param  {Object} query 查询参数对象
	 * @param  {Object} param 分页参数对象
	 */
	query: (query, param) => fetch.request({
		url: `${API_DISTRIBUTIONGOODS_URL}/query`,
		method: 'POST',
		data: {
			query: query,
			param: param
		},
	}),
};


export default DistributionGoodsApi;
